﻿using System.Xml;

namespace Ro.Common.RoInterface
{
    /// <summary>
    /// 接口定义
    /// 将脚本一级子节点转换为对应的类、方法
    /// 解释器功能核心
    /// 在方法RoTcsFileMainEvent.TcsEventMain中被调用
    /// </summary>
    public interface IInterFuncCores
    {
        /// <summary>
        /// Annotation节点
        /// </summary>
        /// <param name="xmlNode">Annotation节点</param>
        bool AnnotationNodes(XmlNode xmlNode);


        /// <summary>
        /// TestConfig节点
        /// </summary>
        /// <param name="xmlNode"></param>
        bool TestConfigNodes(XmlNode xmlNode);


        /// <summary>
        /// StartApp节点
        /// </summary>
        /// <param name="xmlNode"></param>
        bool StartAppNodes(XmlNode xmlNode);


        /// <summary>
        /// Tests节点
        /// </summary>
        /// <param name="xmlNode"></param>
        bool TestsNodes(XmlNode xmlNode);


        /// <summary>
        /// CloseApp节点
        /// </summary>
        /// <param name="xmlNode"></param>
        bool CloseAppNodes(XmlNode xmlNode);


        /// <summary>
        /// LogFunction节点
        /// </summary>
        /// <param name="xmlNode"></param>
        bool LogFunctionNodes(XmlNode xmlNode);
    }
}